<?php

namespace Index\ViewModel;

use Think\Model\ViewModel;

Class WithdrawViewModel extends ViewModel {

    protected $connection = 'DB';   //连接数据库
    protected $viewFields = array(
	//余额提现表
	'chat_withdrawals' => array('id', 'agent_uid', 'user_uid', 'account_id', 'order_no', 'money', 'ratio', 'account', 'bank_name', 'bank_card_no', 'bank_card_holder', 'phone' => 'withdraw_phone', 'type', 'state', 'money_type', 'content', 'ctime', 'app_flag', '_type' => 'left'),
	//用户信息表
	'chat_userinfo' => array('user_id', 'user_logo', 'user_name', 'user_sex', 'user_phone', 'user_birthday', 'user_profession', 'user_address', 'user_describe', 'user_tag', 'user_gold', 'user_flag', 'is_recommend', 'is_active', 'is_hot', 'ftime', '_on' => 'chat_withdrawals.user_uid=chat_userinfo.user_uid'));

}
